﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admincp/Admin.Master" AutoEventWireup="true"
    CodeBehind="Doimatkhau.aspx.cs" Inherits="TPCN.Admincp.Doimatkhau" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../App_Themes/Admincp/tablelayout.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="name" ContentPlaceHolderID="nameholder" runat="server">Đổi mật khẩu</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="maincontent" runat="server">
    <div class="center-horizion">
        <asp:ChangePassword ID="changePass" runat="server" 
            CancelDestinationPageUrl="~/Admincp/Default.aspx" 
            ChangePasswordFailureText="Mật khẩu không đúng hoặc mật khẩu mới không hợp lệ" 
            ContinueDestinationPageUrl="~/Admincp/Default.aspx">
            <ChangePasswordTemplate>
                <div class="table">
                    <div class="table-row">
                        <div class="header">
                            Đổi mật khẩu</div>
                    </div>
                    <div class="table-row">
                        <div class="label">
                            Mật khẩu cũ</div>
                        <div class="control">
                            <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password" 
                                Width="230px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword"
                                ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="table-row">
                        <div class="label">
                            Mật khẩu mới</div>
                        <div class="control">
                            <asp:TextBox ID="NewPassword" runat="server" TextMode="Password" Width="230px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
                                ErrorMessage="New Password is required." ToolTip="New Password is required."
                                ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="table-row">
                        <div class="label">
                            Xác nhận mật khẩu</div>
                        <div class="control">
                            <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password" 
                                Width="230px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword"
                                ErrorMessage="Confirm New Password is required." ToolTip="Confirm New Password is required."
                                ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword"
                                ControlToValidate="ConfirmNewPassword" Display="Dynamic" ErrorMessage="The Confirm New Password must match the New Password entry."
                                ValidationGroup="ChangePassword1">*</asp:CompareValidator>
                        </div>
                    </div>
                    <div class="table-row">
                        <div class="buttonpanel">
                            <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword"
                                Text="Đổi mật khẩu" ValidationGroup="ChangePassword1" CssClass="button button-blue" />
                            <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel"
                                Text="Hủy bỏ" CssClass="button button-blue" />
                        </div>
                    </div>
                    <div class="table-row" style="text-align:right;padding:0 20px">
                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    </div>
                </div>
            </ChangePasswordTemplate>
            <SuccessTemplate>
                <div class="change-success">
                    <div class="message info">
                        <h3>
                            Chúc mừng</h3>
                        <p>
                            Mật khẩu của bạn đã được đổi thành công!</p>
                    </div>
                    <div class="continuebutton">
                        <asp:Button ID="ContinuePushButton" CssClass="button button-blue" runat="server" CausesValidation="False" CommandName="Continue"
                            Text="Quay về trang chủ" />
                    </div>
                </div>
            </SuccessTemplate>
        </asp:ChangePassword>
    </div>
</asp:Content>
